Fixed `--hostname` flag to work correctly.
Merge pull request #246 from sethmcl/hostname_fix

Fixed `--hostname` flag to work correctly.