Replace disable_tests patch with awk script

This is cleaner to include in the upstream code tree.