This worked beautifully! Now all I need is to understand the map command better. I haven't seen that before. Thanks for the link and the advice!
I do have a question though. When I first set this up I had a comma between (/home/john /lib) in the first line of code:
which caused it to not work. Why does the comma have this affect on this or any other script?