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

[fixes #1164]
https://github.com/stefanpenner/ember-cli/issues/1164