Adds option not to clear the build folder.

Setting the variable `clearBeforeBuild` to false doesn't regenerate the
build folder.