Fix incorrect destination for files copied to and from the repository (Closes #68)
Full path was given as the destination for copied from and to the repository. This is replaced by only the basename.
Regression tests included.
This fixes #68 (closed)