Update salt.modules.files.replace

When using salt.modules.files.replace, flags are not passed to re.sub if search_only is false.