Base save state directory names on the ROM's hash as opposed to its filename (which might change) - this prevents you from losing your save states if the filename does change