geo-rep: fix pattern matching in upgrade scripts.

Change-Id: I9ceed333a5416f06537e6ea14055c0971ead9362
BUG: 847839
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-on: http://review.gluster.org/7327
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>