Fix setting of download_dir