:+1: for:
```elixir
sub_dirs = sub_dirs
  |> Enum.map(Path.wildcard(&1))
  |> List.concat
  |> Enum.filter(File.dir?(&1)) 
```

How about the case with no assignment?