Fix issues with relative dirs on startup.

This regression was recently caused in 44f1a773 (the big systemd
and daemonization refactor commit).  Without other invasive
changes, we can't chdir() before conf_load() is done.
dmn phase check macro nits
Move dmn fmtbuf to a function-scope static and reduce buffer sizes
check unix32 with cppcheck as well