make paths generic so that it works with both torch-pkg and luarocks installations
make sure torch runs with one thread only
Merge pull request #1 from koraykv/master

use the paths from torch exe to construct the luapath for both torch-pkg and luarocks.