check whether file/directory exists in copy-dir

If a user run copy-dir with a nonexistent path and "--delete", the worst outcome is that rsync will remove everything on the worker node including ssh configurations.