Adding support for prerelease identifiers

This is implemented per https://github.com/npm/node-semver/issues/88