Fixed an NPE if the credentials are not set
Added SCM URL utilities