Check alternate locations for the locale.

Gmail may store it in one of two different locations in the globals.
just for consistency, can this and the rest of the if/else statements in the function include curly braces