Ignore eggs installed by setup.py test.
Correctly generate relative image paths for generated nodes.

blockdiag (and probably others) want to drop fully-qualified paths to
images in the HTML slide output. The previous implementation for
converting these to relative paths only worked for documents in a
sub-directory of the Sphinx source dir.