Make WAL sequence calculation compatible with PostgreSQL 9.3

With PostgreSQL 9.3 WAL files are written in a continuous stream,
rather than skipping the last 16MB segment every 4GB, meaning WAL
filenames may end in FF.