Improve robustness of test_manpages