Change agent's target directory