[FIXED JENKINS-24043] Expand env. vars in wait for ports field