Added check to recompile scm to c when a new version is detected