Tiny refactoring of "rules" code
Merge branch 'master' of https://github.com/xaionaro/clsync