compile: Fix check on FETCH value

TESTED_HASH was checked out every time, since value of FETCH was not
read (only its existence was verified)
compile: Fix check on BUILD value