Update attribute handling, especially for fomer 'keydir' option.