Add support for installing graphite in a custom location.
Fixes to get custom prefix install working across Ubuntu and CentOS.