fix build for bash 4.3
Merge pull request #178 from smdgjmigop/master

fix build for bash 4.3