some fixes on install script