Fix path resolution on Windows, closes #5