Configure log dir, closes #593