Correct a bug in get_correct_jobname(). If there were multiple '.' characters in a hostname it would get confused, even with nothing set. This is now fixed and unit tested.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev