derive doc directory from package name