replaced host to hostname

Fix for Issue #385