Improved pilau_simple_file_type()