Adjust Appimage build script to handle being in a release tarball
(cherry picked from commit e258128ddab2ffa09814b85df07162038a0e64da)