updated check if we need to install initrd ssh and patches