Update openelec-nightly_latest.sh

Changes to support new file naming used on official images and fix version retrieval for these.