Do variable replacement also on location

Signed-off-by: Stefan Marr <git@stefan-marr.de>