Update core.php for openshift