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.
FYI `EnvironmentError` catches both `IOError` and `OSError`, which can both happen depending on the filesystem.

    except EnvironmentError as exc: