fix postinstall script