factory: hide output from check_is_root in set_connect_env()
factory: small refactoring in operations module