appimage: Use BUILDTYPE and fix VSD build
* src/appimage/build-appimage.sh: Use BUILDTYPE and adapt the script accordingly.