fix runners detecters

Check if buffer is empty to set `filetype`
Improve autoselect function. :smiley_cat: