Support bash pre-4.2 (i.e. Mac)