consistent quoting
Use bash 3.x-friendly readarray clone

Lifted from http://mywiki.wooledge.org/BashFAQ/005#Loading_lines_from_a_file_or_stream

Closes #5