Fix case when the build directory doesn't exist yet