Merge pull request #1666 from TheBlueMatt/2022-08-fix-script-check