Changed to use local tmp dir