Could be done with a check for the presence of the CHM_test.m file or not. However this doesn't tell us we have a working MATLAB license though. The sh files are quite similar to each other, and only have a few blocks that are different. The different blocks will always be different while the identical blocks will always be the same.