Fix for windows backslash paths

- Replace \ with / after getting relative path
- Move path.relative call to its own function for stubbing
- Add test with backslashes in file paths

Reported in stefanpenner/ember-app-kit#525