These three lines can be replaced with:

```
man1.mkpath
man3.mkpath
```

Also, use `mkpath` on the dirs above too.