init confdir to NULL