Create pid dir. Config file cosmetics. Add better secret regex
validation.