Changed required files check logic in application init.