Added portable sed command for OpenBSD/NetBSD

Standard sed, which is used on OpenBSD and NetBSD, doesn't have the "-i" option