Changes directory configuration