You have sysupgraded from an old version that did not yet contain the relevant part in /etc/profile. Sysupgrade with "keep settings" preserves /etc/profile. It makes sense to build all settings from scratch every now and then.
Services part was added in late 2016 with https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=d52676d1ea51bcfc947970085184fe4d18638ccd
/rom/etc/profile contains the current default, while /etc/profile contains old defaults with your personal modifications (or likely just the old default profile).
Easiest for you is to just copy the new version from /rom
Ps. If you do not have that code bit in /etc/profile, you may also have a wrong PATH, as PATH was reformed in late 2015... https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=d7023fc0bc4b66c44969276df9cbfe218f931250