[BUGFIX] error when trailing slash present in argument to generator

[fixes #1164]
https://github.com/stefanpenner/ember-cli/issues/1164
Merge pull request #1184 from rondale-sc/fix-trailing-slash-generate-error

[BUGFIX] error when trailing slash present in argument to generator