Use FileCheck from llvm toolchain to validate output instead of hand rolled script