Fixed sed replacements to be global