Corrected sed to use variable and string concatenantion