Handle \n as well as ; for line separators in r_core_cmd