Modifications on update method and security system - now is easier to update the fmk and some permissions are prevented to be deleted