Catch TypeError for Windows path
numerical comparison should always be == not is
another path error for windows
Merge pull request #273 from jabooth/windowspath

Windows Hotfixes