Add core count detection for Linux
Improve wrapper script
Update submodules