Removing more usage of eof() from bwt