Correct testing of emptyness of builddir, which may fail if the user lacks read permissions on some dir (root, lost+found...)