Don't expand variables if cs==NULL

Closes Coverity #720373
Clear memory using correct size

Closes Coverity #720439, 40, 41
Sign error

Closes Coverity #720436
Initialize IPaddr

Closes Coverity #720462
Fail safely if the directory exists in rad_mkdir

Maybe another thread is making the directory.  If so, it's OK

Closes Coverity #720459
Use strlcpy
Use strlcpy, and check sizeof module name

Closes Covierty #720447