Yes, I tested 'brew doctor' on both Linux and my MacBookPro and it worked but you are correct that I should have used the backticked section.  Why it ran I don't know but I'll fix the code.  Thanks.