Use pathlib's mkdir instead of os's for cross-version compatibility
Use pathlib's mkdir instead of os's for cross-version compatibility

Also fix other pathlib compatibility issues.

ento/elm-doc,ento/elm-doc