protected function getDirOption($return_array = false)
    {
        if($dir = $this->option('dir')) {
            $directories = explode('/', $dir);
            if(is_array($directories) && $directories) {
                $directories = array_map(function($directory) {
                    return ucfirst(str::plural(strtolower($directory)));
                }, $directories);

                return $return_array === true ? $directories : rtrim(implode('/', $directories), '/\\') . '/';
            }
        }
    }