packager.sh: fix loop dev management