Some fixes in install script