Use `file.path` to make windows-friendly paths

trailing `/` on directory names upset windows. `file.path` deals with these peculiarities.
Merge pull request #22 from mnel/patch-1

Use `file.path` to make windows-friendly paths