fix folder/file references for metadata