Add error checking to boot-pkgs script