improve publishJGivenReports.sh script