Fix drupal_valid_path().