Fixed buildscript to work off build.properties