Make clang-tidy script more robust
Changed script to be more robust and in line with other source checking scripts.
Modified clang-tidy:test job to check against the merge fork point for a commit instead of the previous git magic, as this did not work.
Edited by Mark Abraham