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

trailing `/` on directory names upset windows. `file.path` deals with these peculiarities.