[Bug 656599] New: Make the build script dependency resolver behave like the build service one