Slight changes to prepare.sh , pass a param for selected os. exit if passed param value isnt found in array.  Some changes to mkdir , adding -p switches etc.