added removal of legacy root publish directories