Fix the filesystem implementation in order to get blargSnes to run

Is there any good reason to use an index loop rather than an iterator loop here?
i.e. `for (auto it = directory.children.begin(); it != directory.children.end(); ++it)`