Fix scoping issue ($target not available)
This is a follow on from 10a084ebc70417f48801c99610d1f9a60a16c793
Merge pull request #145 from tremble/add_rhn_repo__scope

Fix scoping issue ($target not available)
server/upload*.py,build/init*: switch from a python file for hardware detection dict to a json one.