support running on cloudfoundry

for pn-worker