Correct check_environment script