updating to detect if img comp is running as webjob or console