Use yaml_parse_file() if it's available.