setup.py: perform variable substitution in path variables.

Behave like autotools -- each of the path variables can contain
references to preceding variables, and those are substituted with
user-specified paths. The benefit is that we can now just pass
'--prefix=${EPREFIX}/usr' without overriding every single path.