Restore handling of physical processors in rankfiles

Restoration of prior PR as git hosed the branch. Based on following master commits:

open-mpi/ompi@999f132
open-mpi/ompi@873ae65
open-mpi/ompi@c30152c

Reviewed and approved by Jeff on the original PR.