using ruby gsub in shell scripts