Fix issues for GNU Prolog when testing the existence of files and directories