Some tweaks to AbstractModule.publish() to better deal with unchanged artifacts.