fix the cffi file and directory cannot find bug