Fix rb-site to better handle empty directories.
Fix rb-site to better handle empty directories.

If a user attempted to install a site using rb-site and ended up having
to start over, we would sometimes leave behind an empty directory. A second
attempt would tell the user that they needed to be an administrator, which
was misleading.

The error is now updated saying to also make sure that the user doesn't
have any files in that directory. We also attempt to remove the directory
first, if possible.

Fixes bug #1468
Reviewed at http://reviews.reviewboard.org/r/1600/

1tush/reviewboard,atagar/ReviewBoard,sgallagher/reviewboard,Khan/reviewboard,atagar/ReviewBoard,Khan/reviewboard,chazy/reviewboard,KnowNo/reviewboard,brennie/reviewboard,beol/reviewboard,Khan/reviewboard,1tush/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,chazy/reviewboard,chazy/reviewboard,brennie/reviewboard,Khan/reviewboard,davidt/reviewboard,chipx86/reviewboard,1tush/reviewboard,atagar/ReviewBoard,bkochendorfer/reviewboard,1tush/reviewboard,davidt/reviewboard,chazy/reviewboard,atagar/ReviewBoard,Khan/reviewboard,davidt/reviewboard,chazy/reviewboard,beol/reviewboard,chazy/reviewboard,reviewboard/reviewboard,davidt/reviewboard,sgallagher/reviewboard,Khan/reviewboard,chazy/reviewboard,1tush/reviewboard,reviewboard/reviewboard,chipx86/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,1tush/reviewboard,Khan/reviewboard,reviewboard/reviewboard,sgallagher/reviewboard,beol/reviewboard,atagar/ReviewBoard,beol/reviewboard,chazy/reviewboard,atagar/ReviewBoard,atagar/ReviewBoard,atagar/ReviewBoard,chazy/reviewboard,custode/reviewboard,atagar/ReviewBoard,custode/reviewboard,reviewboard/reviewboard,custode/reviewboard,Khan/reviewboard,bkochendorfer/reviewboard,KnowNo/reviewboard,1tush/reviewboard,custode/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,KnowNo/reviewboard,1tush/reviewboard,brennie/reviewboard,Khan/reviewboard