Ruby and Bash script to find email addresses of multiple names