Convert to using the same method of detecting the secure directory as other usr.sbin programs.
Convert to using the same method of detecting the secure directory as other
usr.sbin programs.

Noted by:	markm

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase