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.