Invoke sed with correct args based on platform.