Fix for installing source code via pip/git

Addresses https://bugs.launchpad.net/oq-engine/+bug/1215865.