Handle dotted/multiple/mixed filetypes

Fixes https://github.com/tpope/vim-ragtag/pull/31
Fixes https://github.com/tpope/vim-ragtag/pull/24