The script uses an undocumented "feature" of the Commodore installer (the documentation says that every instruction needs a help text, but the script does not supply a help text for the copylib instruction). The replacement Installer you are using does not support this. Copy the origirnal Installer from your OS 3.9 CD and try again.