Added full directory support for config files, currently working with some bugs