Make post-publish work from any directory