Fixed running within qemu, patched minor FAT bug