Move $wgMesssageDirs outside of the extension function

The script that looks for $wgMessageDirs on the WMF cluster doesn't call extension functions, 
so consequently messages aren't loaded.