fix hostname resolution in mon destroy calls

`mon destroy` was completely broken because it did not include the hostname resolution function in the function that gets executed remotely.