Treat "." and ".." as directories for ADD command.

This fixes issue #3960.

Docker-DCO-1.1-Signed-off-by: Amrut Joshi <amrut.joshi@gmail.com> (github: rumple)