Added some more new variables to the "new section":
 * sys.logdir
 * sys.piddir
(cherry picked from commit 6f9891f9274ab329b9f83150991052252362fb2c)