Pull request for #33

(I replaced `bash` with `sh` because it's more portable)