Prevent filesystem collisions in dx download

This prevents unhandled errors when running commands of the form "dx
download x*" where x is both a file and a folder name.