fix applib boot to handle default app environment