Fix beancount ftdetect to only check filetype on new file.