switch to correct switch for scratchdir