create modules directory if not exist; use homedir ~/.sfpagent/modules for non root users; use /var/sfpagent for root users