Correctly install script on Windows

Implementation stolen wholesale from
http://matthew-brett.github.io/pydagogue/installing_scripts.html
Merge pull request #17 from Lukasa/windows

Correctly install script on Windows