Make sure the %f expansion handles the new dir.root properly.