fixed bump script

this commit made after recovering  lost files after a failed stash. tested everything ok after cherry picking several other stashes.
looks good.
creating bug fix branch from release-1.3.0 so we can merge it back into develop, and then again into 1.3.1
Merge branch 'bug-fix-bump-script' into develop