Fix a2mod ruby19 bug

Strings are not enumerable in ruby19. This commit splits the
string into lines first.
Merge pull request #315 from blkperl/ruby19_fix

Fix a2mod ruby19 bug