Changed the moment in which the redis working dir is created during deployment.