added warning if target directory is nonempty, closes #3