adding the snapd install before running snap command