Fixed sed patterns (incompatible with OSX) in save_pane_buffer().