Modified program script so that it waits for DFU device to appear