make sure output directory exists
initial version of a build script