Added check for drupal root dir.