fix error check for createuser and createdb on macOS
fix error check for createuser and createdb on macOS

berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud