changed download file method to skip downloading files if the same file already exists at the same local path