config: Fix attribute lookup functions.