Merge pull request #42 from marcus-h/master

Fixed checkout of a hg url that ends with a trailing slash
Rename tar_scm to tar_scm.py

This rename is a preparation so that it can be used as a module inside
unittests.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
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>