Fixed default index file for nightly
Correct cleanup of temp dir.