Fix issue with locale discovery

Was thinking python, not js

Fixes #4