Replace relative path with absolute path