Another attempt at a working buildscript