RefExtract: tweaks to book recognition

Signed-off-by: Alessio Deiana <alessio.deiana@cern.ch>