Updated RepositoryURL task to support .git endings