Load config file from directory or current dir
Some refactoring