changelog.sh: Change functions to POSIX syntax