FIX: quote dir names to prevents fail on space chars

- add test case
- fix *nix bash and window batch scripts

Reported from:
tildeio/ember-extension#83