Fixed an issue with the console class on linux