Instead of single quotes, you probably wanted to use backreferences:
 OS=`uname -s` 
but you really want
 OS=$(uname -s) 
Also, instead of stat if, which will eventually become the if / else series, you can consider the case:
 case $( uname -s ) in Linux) echo Linux;; *) echo other;; esac 
 source share