only build when Snw or tex files change