Validate Drupal rewrite basedir