Go to metadata tmp directory

Fixes #830