discover/pxe: Fix prefix autodetection when bootfile is in the root dir