Added a function to turn a relative path into an absolute path.