Fixed logic error in install script