Fixing hosts mode and apt update check
Merge pull request #6 from shadowman/small-fixes

Small fixes