gradle: profile var usage missed in name refactor

This issue only occurs if you use --info.