scripts/functions remove uefi, fix directories