Fixed publish script that was having issues with IOUtils.toString