Make sure .git is only appended if needed

When creating local clones for a URL which already ends with .git,
planex-clone will not append an additional .git to it.

related to xenserver/planex#53