merge postinstall scripts into one