phase2.c: Try to support recovery

Original commit:
https://gitorious.org/oyo-hack/qi/commit/83985ad397ed9884f2960232b32f7f85ffa0111a