added check to make sure /var/cache/sanoidsnapshots.txt is writeable