GenericAgentInitialize(): make sure custom {log,pid,state} directories are created
tests/unit/Makefile.am: added known_dirs.c to libdb libtool library sources
DBIdToPath(): rework to account for overridden STATEDIR