Fixed sed command again to handle the actual cases present in cmd_history.sh