fix bugs in authorized_* file permission checking.