Fix local repository logic (doesn't use temp dir for now)

Upgrade to clay 2.2