GCI Folder fix compatibility with games that relocate the save after first use

Some games move the block location after their first use, this addresses that by correctly identifying this scenario.
Move scheduling flush to occur after a block is written, flush to disc is scheduled .5s after last block to card is written for both 'raw memcard' and gci folder  options
strip '\r' from the internal filename when generating gci filenames, tmnt failed to flush to disc because of this

ready for review
Don't use static local variables for game state; they can't be saved in savestates.