Changing gnu-sed command for deprecation issues.