[java] Unix.readdir returns '.' and '..'. Ref #2916