change the publish method to make the packing faster
use the faster gethostname() instead of exec('hostname -f')
Merge pull request #25 from fwang2002/master

make the packing faster