Fix bug getting default X509 path on windows
This PR fixes a bug getting the default X509 path on windows. For some reason I originally coded this up to only work in the old command prompt, so trying to use it on powershell fails without this patch.