make unix compatible; fix for matlab without parallel toolbox