Modified version check to check major build number, and moved check to beginning of file