Fixes #90 that hostname is set to key path