replace lsof usage

openshift is about to disable use of lsof for security reasons, which will break this cartridge.  This change will allow it to keep working.