Use platform specific line separator to save config files BUKKIT-2368
Cache pattern and clarify constant names