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

The functionality was already available for the Android build.