Fix logic in periodic snapshot detection for samba

Spotted and reviewed by:	jpaetzel