core: chdir('/') during install

Avoid errors from programs that do not know to run from removed
directory.

Change-Id: I467c3a8eaadf88f5060a96eefefd1872519cb32f
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>