adding some sanity checking to runIfChanged
Add some variables for the current core coun
Use the autodetected core count for rebin parallelism