Fix error checking for WIN_BUILD_OUTPUT and REPO_*_CACERT