BS-114791, change package of dynamic permission rules to avoid path too long on windows + change method check to isAllowed