Make directories in a way BSD understands

Instead of passing `-D` to `install`, pass `-d` to a separate call to
`install`. This handles both BSD and GNU pretty OK.