Fix build error when no .pairs file is present