Update file detection rules