Changed resolving of assemblies.

Assemblies are now resolved from the same directory as the target assembly if they are present.