Handle function or list from psutil

@aronasorman gets credit for debugging this, basically I was having trouble syncing locally and we found that my version of psutil (1.2.1) provided the cmdline attribute as a list, and @cpauya 's version was expecting a function. So we now handle both cases.