fix Mac OS 'sed' command specify (http://stackoverflow.com/questions/2320564/variations-of-sed-between-osx-and-gnu-linux/2420579#2420579)