fix postinstall for windows