Cross-platform fix version.sh

version.sh now works also on linux properly.