[minor] improve filechecker recursion and error handling