Added better env for nosetests by using tempfile