Simplify app_label checking

No need to create an interim tuple just to check whether or not a period is present in the permission name. This uses unnecessary memory and garbage collector time.