Update file detection functions