xmp: Fix odd page check

Fixes #24

It seems my detection of odd/even page was not perfectly reliable
(see http://tex.stackexchange.com/a/85762/25670)

This solution is said to be failsafe