Merge pull request #6 from createdbypete/hotfix/issue-1

Bug fix for "localhost" hostname being wrongly set