expose detect_filetype command