Updated sed to accept ENV variables