fix build script failing if build/dist doesn't exist