Fixed an issue with buildscript