updates absolute paths to relative paths