Issue refs #1365: fixed build script (remove debug index.html from deploy)