Fix a bug which output not hostname but #{Socket.gethostname}
Merge pull request #909 from aibou/master

Fix a bug which output not hostname but #{Socket.gethostname}