Check if app is running in console.