Detect the runtime