Making ps command more platform agnostic