Replace non-portable regex with strict POSIX BRE in tally.bash