Adjust script to work with the old bash version on the nagios host.
Merge pull request #4 from prometheus/improve-parsing

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