GH #122: Use globals() so tests don't have to mock it