Make Get-RepositoryPath more robust. Make it possible to execute from a different directory than the script directory. Improved diagnostics.