executeDir function, add lua statements to ilua history