fix a typo and handling of optware/opt/

fix a bug in copying optware/etc/profile.d directory and removing /opt content