Now the keys file will always be created with the permssion given by $Global::restricted_tie_permission
Changed paths: