Add a feature for changing the location for a dependency

Refs #1061 

@fancyremarker I think I have replicated your problem here in this cucumber feature. But there's one problem - it's not failing. It's possible this has been fixed upstream, or there is something else less transparent going on.... Can you try this branch and see if you can reproduce the error?