MT#7109 use profile and version in the mem files