Added beta to linklint formula

Addressed issues in #31079 after it was closed. I updated the test to write a file and run it through the program like the cmake test does. I also replace the patch with a simple "inreplace" line since the upstream is abandoned.