On darwin host use gsed if user hasn't specified anything else. Otherwise, if variabl...