fix bash regexp in upgrade scripts
Merge pull request #4862 from VojtechVitek/fix_bash_regexp

Merged by openshift-bot
Automatic commit of package [rubygem-openshift-origin-node] release [1.21.2-1].
Automatic commit of package [openshift-origin-cartridge-haproxy] release [1.21.2-1].
Automatic commit of package [rubygem-openshift-origin-frontend-apache-mod-rewrite] release [0.4.2-1].
Automatic commit of package [openshift-origin-cartridge-jbosseap] release [2.14.2-1].
Automatic commit of package [openshift-origin-cartridge-jbossews] release [1.20.2-1].
Automatic commit of package [openshift-origin-cartridge-postgresql] release [1.21.2-1].
Automatic commit of package [openshift-origin-cartridge-mysql] release [1.21.2-1].
Automatic commit of package [openshift-origin-logshifter] release [1.3-1].
Automatic commit of package [openshift-origin-cartridge-php] release [1.21.2-1].
Automatic commit of package [openshift-origin-cartridge-python] release [1.21.2-1].
Automatic commit of package [rubygem-openshift-origin-controller] release [1.21.2-1].
Automatic commit of package [rubygem-openshift-origin-frontend-apache-vhost] release [0.4.2-1].
Automatic commit of package [rubygem-openshift-origin-console] release [1.21.2-1].
Automatic commit of package [openshift-origin-cartridge-jbossas] release [1.21.2-1].
Automatic commit of package [openshift-origin-cartridge-diy] release [1.19.2-1].
Automatic commit of package [openshift-origin-cartridge-ruby] release [1.21.2-1].
Automatic commit of package [openshift-origin-cartridge-perl] release [1.20.2-1].
Automatic commit of package [openshift-origin-cartridge-cron] release [1.19.2-1].