Restore old findBuildDependencyInQueue behaviour

Created by  Eelco Dolstra  on October 3, 2013
JUTAEI7R7DJSUENZ6RJRC3XAK45SOUREAP3RRNDUL5IZMDLSEQ3AC
Change contents