build scripts changed to handle d' correctly