Handle proc stat parsing of edge cases

Fix parsing of stat for processes with command names including
parenthesis or spaces.