Invoke recognize_path in a backwards-compatible way