finding root by lib folder