Function toAbsolutePath

if pathName is not absolute path, convert it to absolute (assuming it is relative to current directory)

string toAbsolutePath(
  string pathName
);