Fixed the look up script to properly handle line breaks on both Mac and Linux