Do not rtrim when executing commands

...otherwise it loses the ending \n and "git config -l" is not
properly formatted.
-c option to check for .git/MERGE_HEAD