Fix the filesystem implementation in order to get blargSnes to run

The main reason is that we want to return the number of files processed, so we’d be keeping a counter around anyway.