Fix syntax that will break in new versions of bash