tweak handling of configs without newline at the end
Handle cfg files with mac line-endings