changing absolute paths to relative paths