Redmine#2178: rename file* functions to filestat() and use string constants