Extend validate_failures.py to run outside the build directory.