Correct core usage demultiplex

The core usage of the demultiplex step does not respect the core limit set within the main.sh script

The step needs to only use a maximum of cores defined by the user on the main script and not all machine resources