fixed file submit with search results, fixed #135
Make sure the right dir is in versions links that appear on search results pages

Fixes #150
Merge pull request #1 from brightinteractive/master

Fixes for choosing files from search results