Fix dir of match check in grammar#reverse_lookup