fix agentd.py to use release dir to load factory setups