move install script to a temporary directory