adds nosetests for --dump-config{-hierarchy} and fixes upload_host missing from env