reworked locating and building of publish path