Simplify shell scripts.

One day, I will remember the name of the `seq` command...
Die if compilation fails.