Allow use of environment variables in config paths

This patch simply adds several calls to `os.expandvars` to functions
that parse paths in the config file.