MAPREDUCE-2031. Fixes test failures TestTaskLauncher and TestTaskTrackerLocalization. Contributed by Ravi Gummadi