fixed issue #10 checking if target dir is empty

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