fixed logic bug in transparent hugepage handling in packages #1130

fixes #1130