Update install.sh

Added more efficient option to detect number of cores on running system via nproc