wrap packages in a if defined to prevent conflict with modules
Fixed attribute installed to present