Add more debug statements and warn if confdir does not exist