Finish upgrading prologue.sh to only use POSIX functionality. (dm)