Fixed the import problem caused by xbmc PR 5201 by moving the new build check code into the script. Closes #12.