Use temp directory in checkoutHead specs