Add support for ft detection on /usr/share/cook.