Replaces references (paths) to files according to the specified mapping file.