doc: Fix out-of-source build so distcheck works again