Added relative directoy support for cfg file