Issue refs #1365: implement build script