Correctly install script on Windows

Implementation stolen wholesale from
http://matthew-brett.github.io/pydagogue/installing_scripts.html