modify sed commands to handle non-GNU and GNU od