change gethostname to detect_hostname
Merge pull request #1 from makocchi-git/fix_gethostname

change gethostname to detect_hostname