more robust localhost method
Merge branch 'master' of github.com:adamfisk/littleshoot-util