Include final filename as prefix in temp name.
Test workaround for sharing violation errors.