Don't create build directory before it's actually needed