Add scm version. Log scm version when error happen