sed hack works with BSD and GNU now