Fix setting of DOC_LANGS and MAN_LANGS, the wrong variables were being used.