Add extension-based filetype detection.