detect filetype from shebang line