add CHECK environment variable for building/checking but not running scripts