Changed SystemPackagingTask so that it gets the localhost in a way that's safe from an UnknownHostException if run on a system with a misconfigured hostname