Added line to change the file permissions for the core.security file after it is created