Make npm postinstall and npm test windows-proof