Fix bugs in fakeroot generation.