Add autorelese pool coverage to code that makes tmp dir paths.