properly fix GNU/BSD stat check
Changes from registered-domain-libs-20121227.tgz
Changes from registered-domain-libs-20130124.tgz