Fix #768

It was a wrong branch. Corrected.

About unit tests. I could not find any unit tests related to ProjectResolver. IMHO you just write code that works (in most cases). If you have unit test for ProjectResolver please provide location and take my regret. And I'll try to add one more test for this case.

I have no interests to make SBT better that it is. You did nice thing ;-) At least the problem easily reproduced with any environment.

Thank you.