Standardizes file detection