Use basename() where appropriate.
Adapt cp to updated dirtree code.
Teach cp to do mknod.