qdoc: Clean path names before using them