Rework node executable selection script.