Fixed code that checks for /usr/local/bin in sudo's and root's $PATH