Converted gen_version.sh to bash script. Fixes popcornmix/omxplayer#26