#218: util/package: fix reference errors; fix the wrong usage of fs; fix own properties;
#218: util/package: fix reference errors; fix the wrong usage of fs; fix own properties;

rhgb/cortex,rhgb/cortex,cortexjs/cortex,cortexjs/cortex