Bump to version 1.3.1
Use tac instead of tail -r