get_scm_type() is unable to pick up scm node from the config element tree for a Pipeline job since the scm node is is nested within a definition node. I do have the fix for it which I manually implemented in my scripts. I am happy to raise a PR for it.