removing local scope for non posix compatible shells; making hostname return correctly for solaris
Merge pull request #8 from tylerflint/solaris-compatibility

Solaris and non posix shell compatibility