Switch build type from dist