Fixing a bug in pxegen where distro was not checked to exist before accesing it