Make check_schema_file works on paths with spaces