fixed hostname in cfg file
and remove directory changing