Fix mkdir -p with absolute paths.

Stripping leading / is not the right thing to do there.
Broken when the code moved to lib and was genericized for use elsewhere.
Most of the remaining cpio cleanup.