Use /. to avoid cp to automatically creating a subdirectory.

The expected semantics is that the source directory becomes the
target directory. This works for that when the target directory
already exists, and when it don't.
Merge pull request #8 from scmcoord/upload-dir-fix

Use /. to avoid cp to automatically creating a subdirectory.