Fix generating the path to the manual URL for dev builds.
Fix generating the path to the manual URL for dev builds.

The old manual URL generation function was assuming that any
non-released builds should us the 'dev' docs, but this is often wrong.
What we actually want is to use the 'dev' docs for any X.Y.0 releases
that aren't marked as "final". This changes the logic accordingly.

Reviewed at https://reviews.reviewboard.org/r/6579/

beol/reviewboard,reviewboard/reviewboard,KnowNo/reviewboard,KnowNo/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,beol/reviewboard,bkochendorfer/reviewboard,chipx86/reviewboard,davidt/reviewboard,custode/reviewboard,reviewboard/reviewboard,davidt/reviewboard,sgallagher/reviewboard,beol/reviewboard,custode/reviewboard,beol/reviewboard,davidt/reviewboard,bkochendorfer/reviewboard,reviewboard/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,brennie/reviewboard,brennie/reviewboard,chipx86/reviewboard,brennie/reviewboard,sgallagher/reviewboard,custode/reviewboard,sgallagher/reviewboard,KnowNo/reviewboard,custode/reviewboard,davidt/reviewboard,bkochendorfer/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,chipx86/reviewboard