Set configuration directory from the environment