[file] path.toString
[ruleset] magic check
Few minor fixes