fixes file detection bug

ref: slim-template/vim-slim#38