New version of install script with flags at the begining.