mkdir and delete commands checks added