protected function getPotentialDirectories($workingDir)
  {
    $paths = array();
    $path = '';
    foreach (explode('/', $workingDir) as $part) {
      $path .= $part . '/';
      $paths[] = rtrim($path, '/');
    }
    return $paths;
  }