Gridpack batch fixes

Reduce size of NLO gridpacks, allow reuse of generated code from existing directory, improvements to handling of failed lsf jobs.