Check if local file exists before downloading