Fix flag variable for tarball and out-of-src builds.