Modified scriptlets to only attempt package installation when necessary