read local directories without recurse all

When using system methods to read the files, they do all over or just
the first directory. We change it to the first directory and go deep by
hand.