Let worker report real hostname

Getting rid of hardcoded 'localhost' constant and using real hostname.