Fixed difference between sed command on linux vs darwin