Fix stderr handler in commit, stdout data in diff