Use LocalisationCache::getMessagesDirs()

Depends on I2399ddd7fd in mediawiki/core which makes the method
public.

Change-Id: Ic8fb0b2ab127c20518a055c0b4f8bc28980c9123