Fix variable test
Do not upload buildlog when NO_UPLOAD is set