Treat "." and ".." as directories in ADD command destination

Fixes Issue #3960