Fix setup.py to work with path changes.

Patch by Nick Weaver.

BIT-1213 #merged