Fixed two dependency paths in preparetest.py

As with 96f1db5 (our parent commit), preparetest should not be used
in future versions of the build script. These two commit here are but
testimonials of its shortcomings.