Console: Use default width of 150 columns if the console's width is not accessible
Add support for exceptions
Fix potential issue with filenames without slash