Split Config definition out into a separate file.
Small tweak to writePidFile.