Add 'Host not found'
Was getting wrong field for sudo
Add -string. foreach -> for. Whitespace
Use -e instead of -f for file test so it works for directories too.