Make sure the build directory exists before running any of the tasks.