Fix #1: Replace root.base by (baseDirectory in root).value