Changed download test code: do not download if directory is present