Moved final add_to_pilot_timing() call to before mainworkdir is purged
Moved final add_to_pilot_timing() call to before mainworkdir is purged

mlassnig/pilot2,PalNilsson/pilot2,mlassnig/pilot2,PalNilsson/pilot2