Adjusted path handling in doc-building process.