Otherwise the executable for the destination is also used on the local machine and this might not exist. Fixes: #22867