Build on systems that don't have /proc mounted

If we are building in a VM which doesn't have /proc mounted, then it is
most likely that this is done on a shared server; we revert to building
for a single processor.
CMake doesn't like quotes and misspelt predicates