Fix: pass the hostdetails too when running a command