Changed directory removal using directory to using rm command.