All brackets in package name will be replaced by "-" to support

tmp library that doesn't use recursive mkdir.

these changes are needed for new regexp of endpoint-parser https://github.com/bower/endpoint-parser/pull/9