macros: ensure startup macros are triggered correctly

(integrated from trunk branch change ec397b3 by Todd Whiteman <toddw@activestate.com>)