Fix New Relic init problem

had to move os.environ line above where settings was used.