Remove redundant checks in Get-PortableGit.ps1

Also, replace the function name (here and in usages).