put quotation on regex for bash-3 compatibility