FIXED: logging system

 * Remove console from logging system's listeners when console window is
   closed
FIXED: detect broken version files

 * Automatically fix broken (Maps|ModPacks|Texturepacks)/*/version files
 * Rare bug but sometimes version file can contain null bytes