update directory in publish script