normalize paths in match_location