Change uname to uname -s and export platform variable.