Thanks for the submission!  I'm not sure this is the right fix, though--this is a "get" function; it shouldn't need to be able to create anything to succeed.  Here, I suggest that this simply returns empty if the directory doesn't exist.

Elsewhere, we should look at why the locale directory doesn't exist.

Thanks!