fixupPhase: Handle the case where $prefix doesn't exist

http://hydra.nixos.org/build/8149154