Munge Authentication Fixes

Various fixes for munge authentication issues including a temporary file name
collision fixed by using mkstemp() rather than mktemp() to ensure file name
uniqueness on a system with high submission rates.