fix current version method break
use temp dir for management repositories