Remove absolute paths from setup.py as it breaks newer setuptools.
Forward port some setup changes from 0.4.1
Test that self_test runs and source dist installs.

Closes #972 and closes #971