finding root by spec folder