Fix `uname` calls with `-o` parameter, as this is not BSD compatible. As per @Eriner, use `uname -a` instead as a "catch-all" parameter.