add G_FILE_TEST_IS_DIR flag for locale dir testing