Use replace instead of unless for config file