sequential file: use directory version as the sequence number

right now we find the max sequence number and increment it. if the file with the max seq num gets deleted, we end up generating a filename with the same sequence number.