Fix smart-package modifications in /etc/profile

/etc/profile modifications done by the smart-xxxxx packages are bash-only which breaks stuff when running /etc/profile with sh (dash). Add a wrapper around the smart stuff to make sure that they are not run for non-bash shells.