detect filetype of mako