fixes installation test on Windows.

This also handles the case where the test/temp directory
does not exist.