[FIXED JENKINS-20427] [FIXED JENKINS-14276] expanded vars in branch spec for remote polling