Determine file types with various mechanisms