Update dsm-control.sh

Fix compatibility with dsm 5.1 (resize problem in profile)