make predist.sh script POSIX-compatible