Converted gen_version.sh to bash script.

This should fix popcornmix/omxplayer#26