Fix: handle download_file boolean option correctly