fallback to tftp if http fails for pxe
fix a bug in regexp