Revert "[FIXED JENKINS-24071] Execute command remotely on slaves, not on master (+formating)"

This reverts commit 9f6f42df0a667c6b7bc28793b04955991dd29864.
Actually didn't fix the issue (see JENKINS-24071) and potentially makes it even worse.