Minor fixes in makedoc.g and doc/clean