Avoid calling uname multiple times