Allow hyphens in program name
Allow hyphens in program name

* Function programname didn't replace '-' for '_'
* Restricted regular expression that get rids of version numbers
in program and module names.
* Added selftest.

kbara/snabb,eugeneia/snabb,SnabbCo/snabbswitch,justincormack/snabbswitch,snabbco/snabb,lukego/snabbswitch,kbara/snabb,wingo/snabb,hb9cwp/snabbswitch,wingo/snabbswitch,justincormack/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,plajjan/snabbswitch,lukego/snabbswitch,dpino/snabb,snabbco/snabb,eugeneia/snabbswitch,snabbco/snabb,plajjan/snabbswitch,Igalia/snabbswitch,Igalia/snabbswitch,dpino/snabb,dpino/snabb,dpino/snabb,dpino/snabbswitch,plajjan/snabbswitch,heryii/snabb,Igalia/snabb,wingo/snabb,wingo/snabb,eugeneia/snabb,eugeneia/snabb,aperezdc/snabbswitch,eugeneia/snabbswitch,justincormack/snabbswitch,SnabbCo/snabbswitch,andywingo/snabbswitch,Igalia/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,dpino/snabbswitch,Igalia/snabbswitch,SnabbCo/snabbswitch,andywingo/snabbswitch,eugeneia/snabbswitch,lukego/snabb,justincormack/snabbswitch,mixflowtech/logsensor,Igalia/snabb,kbara/snabb,dpino/snabb,heryii/snabb,lukego/snabb,plajjan/snabbswitch,aperezdc/snabbswitch,Igalia/snabb,aperezdc/snabbswitch,snabbco/snabb,mixflowtech/logsensor,heryii/snabb,snabbnfv-goodies/snabbswitch,andywingo/snabbswitch,alexandergall/snabbswitch,hb9cwp/snabbswitch,eugeneia/snabbswitch,lukego/snabb,Igalia/snabb,snabbnfv-goodies/snabbswitch,heryii/snabb,kbara/snabb,dpino/snabb,alexandergall/snabbswitch,kbara/snabb,alexandergall/snabbswitch,snabbnfv-goodies/snabbswitch,SnabbCo/snabbswitch,Igalia/snabb,wingo/snabbswitch,heryii/snabb,wingo/snabb,eugeneia/snabb,snabbnfv-goodies/snabbswitch,eugeneia/snabb,Igalia/snabbswitch,dpino/snabbswitch,andywingo/snabbswitch,wingo/snabbswitch,lukego/snabbswitch,eugeneia/snabb,aperezdc/snabbswitch,alexandergall/snabbswitch,dpino/snabbswitch,alexandergall/snabbswitch,hb9cwp/snabbswitch,mixflowtech/logsensor,lukego/snabbswitch,snabbco/snabb,snabbco/snabb,dpino/snabb,lukego/snabb,mixflowtech/logsensor,wingo/snabb,eugeneia/snabb,kbara/snabb,wingo/snabbswitch,mixflowtech/logsensor,hb9cwp/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,Igalia/snabb,eugeneia/snabb,Igalia/snabb,wingo/snabb,heryii/snabb