Make sure temp dir is resolved and created

Closes atom/atom#2271