Refactored to restore secure directory
Refactored to restore secure directory

JPWKU/unix-agent,JPWKU/unix-agent,enStratus/unix-agent,buzztroll/unix-agent,JPWKU/unix-agent,enStratus/unix-agent,JPWKU/unix-agent,buzztroll/unix-agent,enStratus/unix-agent,enStratus/unix-agent,buzztroll/unix-agent,buzztroll/unix-agent