Update #read() to work with latest mem-fs