detect linux and use alternative sed syntax