use only posix shell internal commands, so it has no longer the need for external progs / commands. it would be also solve #2 and make #1 easier.