split on - instead of slice

Just in case there are non-standard naming conventions. Also to match
what is actually happening in the parameter expansion in the bash
version.