Fix how trailing slashes are removed from dir names
Merge pull request #3 from humphd/fixNewFolderBug

Fix how trailing slashes are removed from dir names