Modified build script.

Correct lua will be used now when lua library path is overrided.