run.sh: replace which with type for consistency with other scripts

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
upgrade_db.sh: fix locating of python binary

This fixes two bugs:

upgrade fails when deps were installed to virtualenv but not system
upgrade fails when python==python3 (notably on arch)

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
Merge pull request #475 from benemorius/upgrade_db-bugfix

upgrade_db.sh: fix locating of python binary