CB-4976 dont use cache for local directory
CB-4976 fix tests to handle local dir case