fixing logic error in install script