Switch to modern variable invocation
Fix an idempotency issue, because replacing the file every time is bad with WARs
Merge branch 'curator_realize'