Change the directory management on the agent