small change to localization detection
Merge pull request #1 from agmcleod/master

small change to localization detection