fixed problem when using custom tessdata directory