Fixed buildscript bug