Remove unused code from buildscript