[PATCH v3 3/8] quartz: Always try to detect a file by extension first.