Imporved pilau_simple_file_type()