Move mkpathat to lib, remove redundant function used by patch.
5 files changed