Updated install script (rewrited)