Strip trailing newline returned by rev-parse