fixed logic bug in transparent hugepage handling in packages #1130

fixes #1130
Merge branch 'bugfixes/tokumx-1.4'