convdb: preserve newlines at the end of scripts
Stripping newlines at the end of scripts may change the behaviour in unexpected ways. It seems better to me to preserver them as is. Also scripts can technically be binaries which would be sensitive to removing characters.