Fixed gotcha when app.version is passed in update_app()