Fixed sed file not defined error