Fix some issues running both posh-git and posh-svn together

Sequence of initializing posh-git and posh-svn no longer matters. Also adopts a couple bug-fixes from posh-git ($LASTEXITCODE -> $global:LASTEXITCODE).