Remove duplication of filetype command