Secure perms on the final index and intermediate files

Does not seem to work on the intermediate .csearchindex~ file yet