Fix the metadata finding algorithm
Fix the metadata finding algorithm

We were finding the _first_ instance of the metadata marker in the end of file
block, not the last instance. This would have made for some fun heisenbugs.

maxmind/libmaxminddb,maxmind/libmaxminddb,maxmind/libmaxminddb