Allow disabling of auto commit

set the variable BUILD_STATS_AUTO_COMMIT to anything but TRUE to disable this feature from the command line or environment.