added system directory check to the setup and init files