More robust against buggy FileType plugins on book import