Determine correctly if a task host == localhost
Merge pull request #873 from matthewrmshin/task-host-is-localhost

Correctly determine if a task host == localhost