configure: refactor marker replacement command