Fixed some bugs and replaced AOS_READ_DIR with a version using bulk transfer.