Expand '~' in private key path in config file