main/readline: don't fork in global scope
In order to speed up reading the metadata of all packages, we try to prevent forking in the global scope.
seq is used to generate a list of zero-padded numbers. Replace this with
a shell-loop and printf
to do the same.