Fixes #90 that hostname is set to key path
Merge pull request #91 from Chealion/master

Resolves sync_folders issue that hostname is set to key path