Added Controller->set_directory_name() to make it easier to unit test controllers.