Expand macros in commands before printing