some fixes to the install script
more fixes to installation script