Check for duplicate file before fetching from URL