removed the last slash for a directory

removed the requirement to have a slash at the end of the path to create
a directory