Adjust script to work with the old bash version on the nagios host.

@grobie Here is the fix.