Make fileno() builtin work on directory handles