Fix issues with relative paths and paths with environment variables with some backend Prolog compilers in the `os` library