Fix directory name of repository clone

For the local clone we don't want to keep the SCM extension or any
parameters that are passed via the URL.

Signed-off-by: Jan Blunck <jblunck@infradead.org>