Added condition to wget and curl package directives to avoid "duplicate declaration" errors