Fix changes to symlinked files outside of the project works (#20356)