Handle prerelease dependencies

If the dependency is for prerelease then use prerelease gem index for it.
prerelease package always creates a versioned package.