HPCC-12183 Sanity check on sourcing /setvars and checking  -ne 0 instead of  for safety reasons

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>