Fix with_versions scope

this revert scope changed on 960794ed6b78674ef85a913fdc358825f809ddae .
The query is not the same, and it is resulting to show duplicates gems in the dashboard.
Merge pull request #803 from arthurnn/revert_query_join

Fix with_versions scope