Avoid issues when ports are not null, but binding is empty
[FIXED JENKINS-24071] Execute command remotely on slaves, not on master (+formating)