Do full path replacement first