fix bug with drupal setting default-directory.