fixes #6289: avoids concurrent downloads of files with the same name and destination dir.

I don't think '0600' is appropriate now, '0644' is probably more like it.