Fix directory existence test in the Quintus Prolog adapter file