valid_runner.py: adjusted key hostname logic in get_connection()