Handle ~/ prefix in config path
Created by: ryanslade
We handle this special case so that the home directory is expanded. This is only an issue when the path is specified using an equal sign, eg. -config=~/foo.json
We just fix this one specific edge case since config files are being deprecated soon.