Fixed error with existing temp path file detection.