Update preparetest.py

Add a function to check whether the target directory is empty, and refusing to install if it's not.