Fix for postinstall script cross-OS

This targets #89 and hopefully will solve this. @fraincs could you test this branch perhaps on Windows and report back if this works? :)