Fixed `ls` command and added support in cpio for directories.