Fixed a bug with packages containing hidden files.