#45 Don't use builtin readarray 

It is not available in older versions of bash, like the one that ships with OS X.