Replace token_to_proc() and use strtok_r

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>