Rewrite install script