Added autoflash.sh
Added -y parameter, removed unused flags, and support MAC OSX for autoflash