Add include src path function.
Emit warning with idx file when script finish unexpected.