Fixed wrong path to temp dir