Redmine#2178: add filestat() function and cfengine_stdlib.cf support