Fixes to conf.py to support path expansion and normalization (eg: PID_DIR = ~/graphite/)

Added path normalization and user expansion to the settings. Also create PID_DIR in case it doesn't exist.
cute trick here, I like it.