Propagate resource-dir for prefix builds.