Added extra check for existence of xz