updated the ps command to properly support remote hosts