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