Refactor to fix path resolution when loading config file and remove duplication
Merge pull request #3 from aarmour/fix-file-loading

Refactor to fix path resolution when loading config file and remove duplication