[FIXED JENKINS-26160] Ability for manually trigger jobs when these are in folders

This pull request should fix the problem detailed in JENKINS-26160
Something wrong with a standard `for`-loop?