Use system.getHostname() everywhere
Replace os.environ['HTTP_HOST'] with system.getHostname(), as a
result we do not crash when 'HTTP_HOST' is unset now.
#!/bin/sh
NOSE_WITH_DOCTEST=t
export NOSE_WITH_DOCTEST
NOSE_DOCTEST_EXTENSION=txt
export NOSE_DOCTEST_EXTENSION
#NOSE_DETAILED_ERRORS=t
#export NOSE_DETAILED_ERRORS
nosetests $*