add purgeSearchPaths method for lua binding.