LocalOrParentPath checks provider name

Resolves an issue for weird or obscure providers that do things like WMI
queries on directory checks. Primarily solves the SQLSERVER problem.

Resolves Issue #156
Merge pull request #156 from ShadowWolf/provider-issue

sqlps's provider causes posh-git to throw errors