Customize file type detection