Use bash to fix #384
Merge pull request #2 from benlangfeld/patch-1

Use bash to fix #384