refactor for OpenShift Node.js cartridge