use right bash for Linux, FreeBSD and OS X (hopefully)