Modified build script to check correct version of ST's library