Fix the filesystem implementation in order to get blargSnes to run

-1 -> std::string::npos, also I'm fairly sure the condition doesn't need to be swapped like this, since it's a != and not an == where this error could happen (also code review usually eliminates the need to do this altogether)