Implement most of chmod
nproc: support --all and --ignore and respect OMP_NUM_THREADS
Merge pull request #428 from Arcterus/chmod

Implement most of chmod
Merge pull request #430 from Arcterus/nproc

nproc: support --all and --ignore and respect OMP_NUM_THREADS