Check for headers in builddir first, in check-*.sh Fixes https://bugs.freedesktop.org/show_bug.cgi?id=103346