Fixing temp dir paths