Allow more variables in the sysconfdir path template.
Documentation for --sysconfdir.
Don't pass --sysconfdir to setup scripts compiled against Cabal < 1.17.

Fixes #1433.