Refactored unless condition for install script