Switch to native variable replacement

Signed-off-by: Steven Downer <grinch@outlook.com>