config: Fix resolving macros in command arguments.
config: Fix looking up host custom attributes.