Changing the location of the logs for agent and master