This commit now checks if the second value passed to MKSNAP points to any parent/root directory before performing any action. Signed-off-by: Sayan Nandan <nandansayan@outlook.com>