Go to metadata tmp directory

It fixes #830