Fix bug with path.join on Windows

Closes #1