[SYS/USER] stat and fstat, cat now checks if file is a directory