Please review the attached patch which addresses:
PKI TRAC Ticket #2249 - fix bashisms
This was only tested on Fedora 23 using bash to make certain that it did not cause any issues.