Add root path to configuration. Support sub_dir