530 Recognize the config core.commentchar

See #530 

Relatively easy fix but I'm not sure about the metaprogramming I used.