However, I can still find the old version (the launcher, installation directory, etc.). I thought that the above script simply replaces my current installation with a newer version.
My bad, I was using AppImageLauncher app, which manages AppImage files in its own way, which eventually led to multiple versions of Joplin. I asked it not to manage Joplin anymore, and it works fine now.