now detects filetype from shebang
Some small nice funcs