Don't use civi functions during installation!

Change-Id: Ib48076e479c6b4082932d2fb944d03fb7d82f287