more safely construct graphite urls. fixes #32

safer wrt graphite_url defs ending on /
Fixes #31

On Python 2.7.3 os.path.dirname returns an empty string