Fixed AttributeError on Windows.
Removed unused variable.
Merge pull request #7 from schlamar/fixes