Fixed ImportError in translation tools when run from core/