sys_test: replace usage of the `seq` command

The `seq` command is not portable.