Input file extension detection