Make inst compatible with Windows

Could you integrate my changes in your code and publish a new npm release?

Thanks for your job.