Fix bad code in tell for SEEK_END