Add automatic root path detection

When root path not set we can still try to get it from first template passed into render function.