add purgeSearchPaths method for lua binding.

add purgeSearchPaths method for lua binding.