- Improved context filetype check.