set pwd before exec remote command