Change postinstall script to be cross-platform