Add agent run mode export

This brings the fragments closer to the install-scripts and
prevents agent nodes from installing unneeded packages.