deprecate readdir(::Cmd).
pkg2: use readdir instead of run(`ls`) for massive speedup (duh).
pkg2: for now trying to minimize custom types.
pkg2 wip: bug fixes and some refactoring.