Fix for 15671

Snapshot files were being retrieved based on the persistenceId appearing in the *start* of their filenames.

Changed this to break down the filename, extract the full persistenceId in it, and compare for equality. I've tested this locally and it seems to work. There were no suitable unit tests to update, that I could see.