Add optional overwrite flag to download

If ``overwrite=false`` and file exists we skip the download, see #8147.