Trying to find an invocation of sed compatible with GNU and BSD