replaced sudo with $SUDO_CMD