[build] Fixed ROOT dictionary adjustments for out-of-tree builds