Fix a2mod ruby19 bug

Strings are not enumerable in ruby19. This commit splits the
string into lines first.