change root check on snapcheck