Change initialization function so this would run after changes for APPROOT/DOCROOT.