Compare to base_url when determining Drupal path, so that PR stage site works correctly