The jar task is not correctly building the Main-Class attribute in the case of multiple hyphens in the namespace. Fix this and add regression test.