Removing symlinks and replacing with real files if COPT_INSTEAD_OF_SYMLINK is on