big updates / fixes to NERSC toolchain swapping scripts.