Updated the sed statements in translator to use the variable so it will be mac compatable.