Fix build script for AppImage
This corrects the latest change to this file which caused the script to fail.