Fixed postinstall script for Windows