edoc: Fix building of documentation in sub directories

8115c0840527 broke building for projects that used sub directories
(but not packages).