Check if a file exists locally before trying to stat it for trouter. Should fix bug 3266.