What if the file `${TMP_DIR}/${PACKAGE}/$file` doesn't exist? Your `mv` is gonna break and so will the loop.