Fixed dependency of publish-internal task.
Made clean-doc task more precise (it would throw away the compiled code when generating docs)