server/upload.py: fix generated configure scripts to use the hadrware python module