fix the problem with sed silent option in Mac