JENKINS-21394 Fixed node detection that was not allow proper SCM polling