Move find_app_id call to deploy_app for better error handling