prevent duplicate temp dir resource