Fix #1 where inplace sed fails in BSD sed