Improve emlua_shell transform slightly
Return print buffer instead of logging to void