fixes $isHardwarePackage type

Type is bool and not string