Fix the filesystem implementation in order to get blargSnes to run

It is the index of the last file we iterated on, and an object property so it starts at 0 but eventually ends up to the number of files in the directory.