change install script

some optimalizations for your install script