Read $DEPLOYMENT_MODE from os-apply-config instead of environment variable