Properly init resolver with the sharedFormatterDir (not only for the tests).