replace lsof usage

openshift is adding security rules to disable the use of lsof, so calls to it will begin to fail.  This pull replaces its use with a equivalent check.