Fixed compare URL for both git@ and https repos

Added a check in order to create the correct URL depending on git@ or https origin