Fixed problem with recursive call to sed macro