Properly expand 'name'.