Fix download_file return value