Fix bug in the implementation of the predicate `os::expand_path/2` for XSB