Added support for @localstatedir@.