Fix resource temp dir