Added support for ~/ in config file paths. issue #7.